<template>
   <div class="sub">
     <button @click="sub(1)">-1</button>
    <button @click="sub(5)">-5</button>
    <button @click="sub(10)">-10</button>
   </div>
</template>
<script>
export default
{
    methods: {
        sub(count)
        {
            this.$emit("sub", count);
        }
    },
}
</script>
<style scoped>
</style>